package com.hly.basickotlin.activity
import com.hly.basickotlin.base.BaseActivity
import com.hly.basickotlin.MainActivity
import android.content.Intent
import java.util.*


/**
 * ~~~~~~文件描述:~~~~~~
 * ~~~~~~作者:huleiyang~~~~~~
 * ~~~~~~创建时间:2018/7/13~~~~~~
 * ~~~~~~更改时间:2018/7/13~~~~~~
 * ~~~~~~版本号:1~~~~~~
 *
 */
class SplashActivity : BaseActivity() {

    override fun getLayout(): Int {
        return 0
    }


    override fun setListener() {

    }

    override fun initView() {
        /**
         * new 对象 等于java Timeer time = new Timer();
         */
        val time = Timer()
        val tk = object : TimerTask() {
            var intent = Intent(this@SplashActivity, MainActivity::class.java)
            override fun run() {
                startActivity(intent)
                finish()
            }
        }
        time.schedule(tk, 2000)
    }

    override fun initData() {
    }


}